#ifndef FACETRAIN_H
#define FACETRAIN_H

#include <QObject>
#include <opencv2/opencv.hpp>
#include <opencv2/face.hpp>


using namespace cv;
using namespace cv::face;
class FaceTrain : public QObject
{
    Q_OBJECT
public:
    explicit FaceTrain(QObject *parent = nullptr);


    bool append(cv::Mat face,int label);
    bool face_train(QString xml);
    void clear();

private:
    std::vector<Mat> Mats;
    std::vector<int> Labels;

signals:

public slots:
};

#endif // FACETRAIN_H
